package com.maintest;

import java.util.regex.Pattern;

public class test {

	public static void main(String[] args) {
		//域名替换成ip地址
        Pattern pattern = Pattern.compile("http://www.greenenergy.org.cn/gctrade/shop/cHonor/79baf9b1-90a7-4414-bd26-bdd1f33b7865.jpg");
        String newImgUrl = pattern.matcher("http://10.86.3.55:8080/gctrade/shop/cHonor/1fbf80db-96be-4562-a2dc-f77c37c01c8d.jpg").replaceFirst("https://172.17.165.17:8090/rept/sr/mp/portaladmin/static/img/login-bg-icon.95a3a09d.png");
System.out.println(newImgUrl);

	}

}
